package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.StageRetainEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
/**
 * 备份阶段
 * @author mingliang.cao
 */
@Mapper
@Repository
public interface StageRetainDao {
    Integer insert(StageRetainEntity entity);

    void insertBatch(List<StageRetainEntity> list);

    StageRetainEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(StageRetainEntity entity);

    List<StageRetainEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    void updateBatch4Script(@Param("list") List<StageRetainEntity> list);

}